package com.demo.xj_plane.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.demo.xj_plane.dao.XjThresholdMapper;
import com.demo.xj_plane.entity.XjThresholdEntity;
import com.demo.xj_plane.service.XjThresholdService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class XjThresholdServiceImpl extends ServiceImpl<XjThresholdMapper, XjThresholdEntity> implements XjThresholdService {

    @Autowired
    private XjThresholdMapper xjThresholdMapper;

    @Override
    public XjThresholdEntity selectThreshold(String cccc, String pointCode) {
        return xjThresholdMapper.selectThreshold(cccc, pointCode);
    }

    @Override
    public boolean deleteThreshold(String cccc, String pointCode) {
        return xjThresholdMapper.deleteThreshold(cccc, pointCode) == 1;
    }

    @Override
    public int pageCount(Map<String, Object> params) {
        return xjThresholdMapper.pageCount(params);
    }

    @Override
    public List<XjThresholdEntity> pageList(Map<String, Object> params) {
        return xjThresholdMapper.pageList(params);
    }
}
